<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<html>
<head>
	<title>PCSYS</title>
</head>
<body>
<% 
if(session.getAttribute("userInfo") != null){  
    response.sendRedirect("../welcome.html");
}  
%>
	<form:form commandName="commandUserInfo" method="POST" action="login.html">
		Username: <form:input path="username" /><form:errors path="username" /><br />
		Password: <form:password path="password" /><form:errors path="password" /><br />
		<input type="submit" title="Login" />
	</form:form>
</body>
</html>